TreeGridLoaded ({ /* JSONP header, to be possible to load from xxx_Jsonp data source */ 
   "Cfg" : { "id": "MasterNestedPaging", "SuppressCfg": "1", "ExternalAlign": "1", "MainCol": "NAME", "ShowVScroll": "1", "ConstWidth": "600", "Undo": "1", "FullId": "1", "NumberId": "1", "IdChars": "0123456789"   }, 
   "Cfg_2" : { "ExportType": "Hidden,Expanded,Outline,FixedRows", "ExportLoad": "2", "PrintLoad": "3"   }, 
   "Cfg_3" : { "CopyPasteTree": "3", "CopyCols": "2"   },  // Copies & pastes rows with children and all columns, including hidden, because of data in detail grids 
   "Cfg_4" : { "ChildPaging": "3"   },  // Sets the server paging to load detail grids on demand 
   "Cols" : [ 
      { "Name": "id", "Type": "Text", "Width": "50", "Format": "||||\\$|g|-", "CanCopyPaste": "0", "CanExport": "0"   }, 
      { "Name": "NAME", "Type": "Text", "GroupWidth": "1", "Width": "280"   }, 
      { "Name": "SURNAME", "Type": "Text", "Width": "160"   }, 
      { "Name": "AGE", "Type": "Int"   }, 
      { "Name": "MARRIED", "Type": "Bool"   }, 

      // Detail grid columns, defined here for Save and Copy & Paste 
      { "Name": "ADDRESS", "Type": "Lines", "Visible": "0", "CanHide": "0"   }, 
      { "Name": "NOTE", "Type": "Lines", "Visible": "0", "CanHide": "0"   }, 
      { "Name": "REMARK", "Type": "Lines", "Visible": "0", "CanHide": "0"   }, 

      // Const width column, shown only if grid width is less than 600px to preserve grid minimal width to show nested grids 
      { "Name": "EMPTY", "Def": "ConstWidth"   }  

   ], 
   "Panel" : { "Copy": "1"   }, 
   "Def" : [ 
      // The default row for all master rows 
      { "Name": "MAIN", "CDef": "DETAIL", "Expanded": "0"   }, 

      //  The default row for all detail grid parents 
      { "Name": "DETAIL", "DetailCol": "NAME", "DetailLayout": "09-Detail.js", "DetailTreeGrid": "<bdo Page_Url=\"09-Page*id.js\" Page_Method=\"Get\"></bdo>", "Spanned": "1", "NAMESpan": "5", "CanExport": "2", 
         "Expanded": "0", "CanExpand": "0", "CanFilter": "0", "CDef": "DETAILROW", "AcceptDef": "DETAILROW", "AGECopyValue": "", "MARRIEDCopyValue": ""   }, 

      // The default row for rows in detail grid 
      { "Name": "DETAILROW", "CDef": "DETAILDETAIL", "AcceptDef": "DETAILDETAIL", "AGECopyValue": "", "MARRIEDCopyValue": "", "AGEExportValue": "", "MARRIEDExportValue": ""   }, 

      //  The default row for all detail detail grid parents 
      { "Name": "DETAILDETAIL", "DetailCol": "ADDRESS", "DetailLayout": "09-DetailDetail.js", "Spanned": "1", "ADDRESSSpan": "2", "CanExport": "2", 
         "Expanded": "0", "CanExpand": "0", "CanFilter": "0", "CDef": "DETAILDETAILROW", "AcceptDef": "DETAILDETAILROW", "AGECopyValue": "", "MARRIEDCopyValue": "", "Items": [
         { "REMARK": "new remark"   }  
      ]}, 

      // The default row for rows in detail grid 
      { "Name": "DETAILDETAILROW", "CDef": "", "AcceptDef": "", "AGECopyValue": "", "MARRIEDCopyValue": "", "AGEExportValue": "", "MARRIEDExportValue": ""   }, 
      
      // Default row for group rows 
      { "Name": "Group", "AggChildren": "1", "Expanded": "1", "CanFilter": "2"   }  
   ], 
   "Root" : { "CDef": "MAIN", "AcceptDef": "MAIN"   }, 
   "Header" : { "id": "ID", "MenuName": "Header", "NAME": "First name", "EMPTY": " "   }, 
   "Head" : [ 
      { "Kind":"Filter", 
         "NAMECanEdit": "0", "NAMEShowMenu": "0", "NAMEButton": "Defaults", "NAMEDefaults": "|*FilterOff|*RowsDefMAIN", "NAMERange": "1", 
         "SURNAMECanEdit": "0", "SURNAMEShowMenu": "0", "SURNAMEButton": "Defaults", "SURNAMEDefaults": "|*FilterOff|*RowsSibling", "SURNAMERange": "1"  
          }  
   ], 
   "Foot" : [ 
      { "id": "Sum", "Calculated": "1", "CanEdit": "0", "MenuName": "Summary", 
         "NAME": "Summary", 
         "AGEFormula": "min()+\" - \"+max()", "AGEType": "Text", "AGEAlign": "Right", 
         "MARRIEDFormula": "count(\"MARRIED\",\"MARRIED\")+\" / \"+count()", "MARRIEDType": "Text", "MARRIEDAlign": "center"  
          }  
   ], 
   "Solid" : [ 
      { "Kind":"Toolbar1", "id": "Group", "Cells": "GROUP", 
         "GROUPType": "Bool", "GROUPLabelRight": "Group rows by Surname", 
         "GROUPOnChange": "Grid.DoGrouping(Value?\"SURNAME\":\"\")"  
          }  
   ], 
   "Toolbar" : { "Kind": "Toolbar2"   }, 
   "Body" : [ 
      [ 
         { "id": "1", "NAME": "James", "SURNAME": "Jackson", "AGE": "24", "MARRIED": "0", "Count": "1"   }, 
         { "id": "2", "NAME": "Daniel", "SURNAME": "Moore", "AGE": "38", "MARRIED": "1", "Expanded": "1", "Count": "1"   }, 
         { "id": "3", "NAME": "Lisa", "SURNAME": "Moore", "AGE": "12", "MARRIED": "0", "Count": "1"   }, 
         { "id": "4", "NAME": "Nancy", "SURNAME": "Allen", "AGE": "65", "MARRIED": "1", "Count": "1"   }  
      ], 
   ], 
}) /* End of JSONP header */ 